<?php
$routerGroup = new \Phalcon\Mvc\Router\Group(['module' => 'admin']);

$routerGroup -> setPrefix('/admin');

$routerGroup -> addGet('(/?)', ['controller' => 'Index', 'action' => 'index']) -> setName('adminIndex::index');

$routerGroup -> add('/:controller/:action/:params', ['controller' => 1, 'action' => 2, 'params' => 3])->setName('Admin::all');

return $routerGroup;
?>